<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <link href="https://cdn.jsdelivr.net/npm/bootstrap@3.3.7/dist/css/bootstrap.min.css" rel="stylesheet">
    <style>
        textarea{width:300px;height:100px;}
    </style>
</head>
<body>
    <div class="container">
            <form action="doEdit" method="POST" role="form">
                <legend>修改数据</legend>
                <input type="hidden" name="id" value={{@ blog._id}}>
                <div class="form-group">
                    <label for="title">title:</label>
                    <input type="text" name="title" value='{{blog.title}}' class="form-control" id="title" placeholder="Input field">
                </div>
                <div class="form-group">
                    <label for="content">content:</label>
                    <textarea name="content" id="content" class="form-control" cols="30" rows="10">{{@ blog.content}}</textarea></p>
                </div>
                <button type="submit" class="btn btn-primary">添加</button>
            </form>
        </div>
</body>
</html>